from tkinter import *

coords = [[0,0], [10,0], [10,10], [20,10], [20,0], [30,0], [30,20], [0,20]]
nc=[0,0]
root = Tk() 
root.title("ИТ марафон")
root.geometry("800x550")


canvas = Canvas(bg="#FFFFFF",width=500,height=500)
canvas.pack(anchor=E, expand=1)

nc[0] = int(input())
nc[1] = int(input())
m = int(input())

max_coords = 0

for  coords  in coords:
    for  i  in range(2):
        coords[i] = coords[i] * m + nc[i]

max_coords = max(coords)

if max_coords <= 500:
    canvas.create_polygon(coords, fill="#0582A6", outline="#000000",width=2)
else:
    print("Размер фигуры превышает размер поля")
    
root.mainloop()
